package wql.demo02;

/**
 * @author wql
 * @version 1.0
 * @date 2022/10/25 14:19
 */

public class Food<T> {
    private T a;
    private T b;

    public Food(T a, T b) {
        this.a = a;
        this.b = b;
    }

    public T getA() {
        return a;
    }

    public void setA(T a) {
        this.a = a;
    }

    public T getB() {
        return b;
    }

    public void setB(T b) {
        this.b = b;
    }

    @Override
    public String toString() {
        return "Food{" +
                "a=" + a +
                ", b=" + b +
                '}';
    }
}
